package com.example.springboot2.oa.jstree;

import java.util.List;

public class TreeNode
{
  public static final String NODE_OPEN = "open";
  public static final String NODE_CLOSED = "closed";
  private String id;
  private String parentId;
  private String text;
  private String desc;

  public String getParentId() {
    return parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  private List<TreeNode> children;

  public TreeNode()
  {
    this.id = "";
    this.text = "";
    //this.children = null;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public List<TreeNode> getChildren()
  {
    return this.children;
  }

  public void setChildren(List<TreeNode> children)
  {
    this.children = children;
  }

}